<?

$ms= isset($_POST['ms']) ? $_POST['ms'] : "";
$ms=str_replace("\n","<br>",$ms);

if($roomid>0 && !empty($ms))
{
	$dbsql->query("update ".$GLOBALS['first_table']."tblchat set cText=concat(cText,'".$username."++".$ms."$$') where iChatId=$roomid");
	echo "ok";
	exit();
}
echo "false";
exit();
?>